package com.gitee.mrj.aiboot.core.model;

import com.gitee.mrj.aiboot.annotation.config.sf.type.AlainField;
import com.gitee.mrj.aiboot.annotation.config.sf.type.AlainInteger;
import com.gitee.mrj.aiboot.annotation.config.sf.type.AlainObject;
import com.gitee.mrj.aiboot.annotation.config.sf.type.AlainString;
import com.gitee.mrj.aiboot.annotation.config.sf.ui.SFGrid;
import com.gitee.mrj.aiboot.annotation.config.sf.ui.widget.SFObjectWidget;
import lombok.Getter;
import lombok.Setter;
import org.springframework.core.annotation.Order;


/**
 * @author MRJ
 * date 2018-11-22.
 */

@Getter
@Setter
public class AibootPost2 {


    @AlainString(title = "编码")
    private String code;

    @AlainField(title = "名称", required = true)
    private String name;

    @AlainInteger(title = "重量", required = true, maximum = 10, minimum = 4)
    private Integer weight;
    @AlainField(title = "ID")
    @Order(1)
    private String id;


    @AlainObject(title = "Post")
    @SFObjectWidget(card = true)
    @SFGrid(value = SFGrid.Grid.OneColumn)
//    @SFArrayWidget
    private AibootPost2 post;

}
